import random

def get_random_trace():
    total = 0
    array = []
    for i in range(1,10):
        a = random.randint(20, 80)
        total = total + a
        array.append(a)
    last = 390 - total
    if last > 0:
        array.append(last)
    else:
        array.insert(8, last)
    return array

print(get_random_trace())